package com.service.stock.impl;

import com.mapper.entity.StockCirculation;
import com.mapper.entity.StockCirculationDetailOrg;
import com.service.stock.IStockOrgInstanceToStock;
import org.springframework.stereotype.Component;

/**
 * @author: create by God of SJF
 * @version: v1.0
 * @description: com.service.stock.impl
 * @date:2021/9/16
 */
@Component
public class BaseStockOrgInstanceToStock implements IStockOrgInstanceToStock {
    @Override
    public StockCirculation instance(StockCirculationDetailOrg org) {
        StockCirculation stockCirculation= new StockCirculation();
        stockCirculation.setBarcodeContent(org.get_barcode_content());
        stockCirculation.setStatus(org.get_status());
        stockCirculation.setOperateTime(org.getTime());
        stockCirculation.setOperateName(org.get_operate_name());
        stockCirculation.setWorkid(org.get_workid());
        return stockCirculation;
    }
}
